<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/22
 * Time: 16:34
 */

namespace app\weixin\controller;
use think\Db;

class CooperationCase extends Base
{

    public function index(){
         $this->assign('title','律师合作');
          //页面内容
          $data = Db::table('wechat_sstz')->where(['title' => '律师合作'])->select();
            foreach ($data as $k => $v){
            $data[$k]['son'] = Db::table('wechat_sstz')->where(['pid' => $v['id']])->select();
            }
            //入驻例表
          $result = Db::table('php_lication')->where(['status' => 1])->order('id desc')->limit(20)->select();

            $this->assign('data',$data);
            $this->assign('result',$result);
            return view();
    }
}